<?php
namespace api\common\model;
use think\Db;
class ShopPic extends \think\Model // 门店图片
{   
    
    protected $table = 'shop_pic';
    
    /**
     * 根据门店查询所有图片
     */
    public function selByShopId($shopId){
        $res = Db::query('SELECT t1.pic FROM mj_shop_pic AS t1 LEFT JOIN mj_shop AS t2 ON t1.shopId = t2.shopId where t1.shopId='.$shopId);
        return $res;
    }
}
